///搜索页

class SearchModel {
  String? keyword;
  final List<SearchItem>? data;
  final String? resultPageUrl;

  SearchModel(this.data, this.resultPageUrl);

  factory SearchModel.fromJson(Map<String, dynamic> json){
    var dataJson = json["data"] as List;
    List<SearchItem> data = dataJson.map((e) => SearchItem.fromJson(e)).toList();

    return SearchModel(data ,json["resultPageUrl"]);
  }
}

class SearchItem {
  final String? word; //xx酒店
  final String? type; //hotel
  final String? price; //实时计价
  final String? star; //豪华型
  final String? zonename; //虹桥
  final String? districtname; //上海
  final String? url;

  SearchItem(this.word, this.type, this.price, this.star, this.zonename,
      this.districtname, this.url);


  factory SearchItem.fromJson(Map<String, dynamic> json){
    return SearchItem(
        json["word"],
        json["type"],
        json["price"],
        json["star"],
        json["zonename"],
        json["districtname"],
        json["url"]);
  }
}